home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Esportes / LightningBreak.swf / scripts / frame_1 / DoAction_6.as < prev    next >
Text File  |  2006-06-13  |  9KB  |  139 lines

  1. itemsPerPage = 5;
  2. ballsAmount = 8;
  3. spotVariance = 0.01;
  4. scoreThreshold = 1500;
  5. tables = new Array();
  6. table = new Object();
  7. table.flex = 0.9;
  8. table.friction = 0.978;
  9. table.x0 = 23.3;
  10. table.x1 = 616.7;
  11. table.y0 = 23.3;
  12. table.y1 = 320.2;
  13. table.cornerHoleSize = !cornerHoleSize ? 68 : cornerHoleSize;
  14. table.centerHoleSize = !centerHoleSize ? 60 : centerHoleSize;
  15. table.height = _height - 40;
  16. table.hwalls = new Array();
  17. table.hwalls[0] = {x0:table.x0 + table.cornerHoleSize / 2,x1:table.x0 + (table.x1 - table.x0) / 2 - table.centerHoleSize / 2,y0:table.y0,y1:table.y0,dir:1};
  18. table.hwalls[1] = {x0:table.x0 + (table.x1 - table.x0) / 2 + table.centerHoleSize / 2,x1:table.x1 - table.cornerHoleSize / 2,y0:table.y0,y1:table.y0,dir:1};
  19. table.hwalls[2] = {x0:table.x0 + table.cornerHoleSize / 2,x1:table.x0 + (table.x1 - table.x0) / 2 - table.centerHoleSize / 2,y0:table.y1,y1:table.y1,dir:-1};
  20. table.hwalls[3] = {x0:table.x0 + (table.x1 - table.x0) / 2 + table.centerHoleSize / 2,x1:table.x1 - table.cornerHoleSize / 2,y0:table.y1,y1:table.y1,dir:-1};
  21. table.vwalls = new Array();
  22. table.vwalls[0] = {x0:table.x0,x1:table.x0,y0:table.y0 + table.cornerHoleSize / 2,y1:table.y1 - table.cornerHoleSize / 2,dir:1};
  23. table.vwalls[1] = {x0:table.x1,x1:table.x1,y0:table.y0 + table.cornerHoleSize / 2,y1:table.y1 - table.cornerHoleSize / 2,dir:-1};
  24. table.holes = new Array();
  25. table.holes[0] = {x:17,y:17,radius:40.4};
  26. table.holes[1] = {x:320,y:-14,radius:47.4};
  27. table.holes[2] = {x:640 - table.holes[0].x,y:table.holes[0].y,radius:table.holes[0].radius};
  28. table.holes[3] = {x:table.holes[0].x,y:1 * table.hwalls[2].y0 - (table.holes[0].y - table.hwalls[0].y0),radius:table.holes[0].radius};
  29. table.holes[4] = {x:table.holes[1].x,y:1 * table.hwalls[2].y0 - (table.holes[1].y - table.hwalls[0].y0),radius:table.holes[1].radius};
  30. table.holes[5] = {x:table.holes[2].x,y:1 * table.hwalls[2].y0 - (table.holes[2].y - table.hwalls[0].y0),radius:table.holes[2].radius};
  31. tables[0] = table;
  32. lidPoints = new Array();
  33. lidPoints[0] = {x:table.vwalls[0].x0 * 0.5 + table.hwalls[0].x0 * 0.5 + 5,y:table.vwalls[0].y0 * 0.5 + table.hwalls[0].y0 * 0.5 - 5};
  34. lidPoints[1] = {x:table.hwalls[0].x1 * 0.5 + table.hwalls[1].x0 * 0.5 - 10,y:table.y0 + 5};
  35. lidPoints[2] = {x:table.vwalls[1].x0 * 0.5 + table.hwalls[1].x1 * 0.5 - 5,y:table.vwalls[1].y0 * 0.5 + table.hwalls[1].y0 * 0.5 - 5};
  36. lidPoints[3] = {x:table.vwalls[0].x0 * 0.5 + table.hwalls[2].x0 * 0.5 + 5,y:table.vwalls[0].y1 * 0.5 + table.hwalls[2].y0 * 0.5 + 5};
  37. lidPoints[4] = {x:table.hwalls[0].x1 * 0.5 + table.hwalls[1].x0 * 0.5 - 10,y:table.y1 - 5};
  38. lidPoints[5] = {x:table.vwalls[1].x0 * 0.5 + table.hwalls[3].x1 * 0.5 - 5,y:table.vwalls[1].y1 * 0.5 + table.hwalls[3].y0 * 0.5 + 5};
  39. lidPoints2 = new Array();
  40. lidPoints2[0] = {x:table.vwalls[0].x0 * 0.5 + table.hwalls[0].x0 * 0.5 - 5,y:table.vwalls[0].y0 * 0.5 + table.hwalls[0].y0 * 0.5 + 5};
  41. lidPoints2[1] = {x:table.hwalls[0].x1 * 0.5 + table.hwalls[1].x0 * 0.5 + 10,y:table.y0 + 5};
  42. lidPoints2[2] = {x:table.vwalls[1].x0 * 0.5 + table.hwalls[1].x1 * 0.5 + 5,y:table.vwalls[1].y0 * 0.5 + table.hwalls[1].y0 * 0.5 + 5};
  43. lidPoints2[3] = {x:table.vwalls[0].x0 * 0.5 + table.hwalls[2].x0 * 0.5 - 5,y:table.vwalls[0].y1 * 0.5 + table.hwalls[2].y0 * 0.5 - 5};
  44. lidPoints2[4] = {x:table.hwalls[0].x1 * 0.5 + table.hwalls[1].x0 * 0.5 + 10,y:table.y1 - 5};
  45. lidPoints2[5] = {x:table.vwalls[1].x0 * 0.5 + table.hwalls[3].x1 * 0.5 + 5,y:table.vwalls[1].y1 * 0.5 + table.hwalls[3].y0 * 0.5 - 5};
  46. table = new Object();
  47. table.flex = tables[0].flex;
  48. table.friction = tables[0].friction;
  49. table.x0 = tables[0].x0;
  50. table.x1 = tables[0].x1;
  51. table.y0 = tables[0].y0;
  52. table.y1 = tables[0].y1;
  53. table.cornerHoleSize = tables[0].cornerHoleSize;
  54. table.centerHoleSize = tables[0].centerHoleSize;
  55. table.height = tables[0].height;
  56. table.hwalls = new Array();
  57. table.hwalls[0] = {x0:table.x0,x1:table.x1,y0:table.y0,y1:table.y0,dir:1};
  58. table.hwalls[1] = {x0:-100,x1:-101,y0:-100,y1:-101,dir:1};
  59. table.hwalls[2] = tables[0].hwalls[2];
  60. table.hwalls[3] = tables[0].hwalls[3];
  61. table.vwalls = new Array();
  62. table.vwalls[0] = {x0:table.x0,x1:table.x0,y0:table.y0,y1:table.y1 - table.cornerHoleSize / 2,dir:1};
  63. table.vwalls[1] = {x0:table.x1,x1:table.x1,y0:table.y0,y1:table.y1 - table.cornerHoleSize / 2,dir:-1};
  64. table.holes = new Array();
  65. table.holes[0] = {x:-100,y:-100,radius:1};
  66. table.holes[1] = {x:-100,y:-100,radius:1};
  67. table.holes[2] = {x:-100,y:-100,radius:1};
  68. table.holes[3] = tables[0].holes[3];
  69. table.holes[4] = tables[0].holes[4];
  70. table.holes[5] = tables[0].holes[5];
  71. tables[1] = table;
  72. table = new Object();
  73. table.flex = tables[0].flex;
  74. table.friction = tables[0].friction;
  75. table.x0 = tables[0].x0;
  76. table.x1 = tables[0].x1;
  77. table.y0 = tables[0].y0;
  78. table.y1 = tables[0].y1;
  79. table.cornerHoleSize = tables[0].cornerHoleSize;
  80. table.centerHoleSize = tables[0].centerHoleSize;
  81. table.height = tables[0].height;
  82. table.hwalls = new Array();
  83. table.hwalls[2] = {x0:table.x0,x1:table.x1,y0:table.y1,y1:table.y1,dir:-1};
  84. table.hwalls[3] = {x0:-100,x1:-101,y0:-100,y1:-101,dir:-1};
  85. table.hwalls[0] = tables[0].hwalls[0];
  86. table.hwalls[1] = tables[0].hwalls[1];
  87. table.vwalls = new Array();
  88. table.vwalls[0] = {x0:table.x0,x1:table.x0,y0:table.y0 + table.cornerHoleSize / 2,y1:table.y1,dir:1};
  89. table.vwalls[1] = {x0:table.x1,x1:table.x1,y0:table.y0 + table.cornerHoleSize / 2,y1:table.y1,dir:-1};
  90. table.holes = new Array();
  91. table.holes[0] = tables[0].holes[0];
  92. table.holes[1] = tables[0].holes[1];
  93. table.holes[2] = tables[0].holes[2];
  94. table.holes[3] = {x:-100,y:-100,radius:1};
  95. table.holes[4] = {x:-100,y:-100,radius:1};
  96. table.holes[5] = {x:-100,y:-100,radius:1};
  97. tables[2] = table;
  98. aimDistance = 3;
  99. aimRange = 50;
  100. ballSize = 24;
  101. this.steps = -1;
  102. replayDataSlots = new Array();
  103. _root.replayDataSlots[1] = new Array();
  104. _root.replayDataSlots[1][0] = {x:203,y:169.95,vx:28.2282346046794,vy:0};
  105. _root.replayDataSlots[1][1] = {x:388.95,y:169.95,vx:0,vy:0};
  106. _root.replayDataSlots[1][2] = {x:416.95,y:153.95,vx:0,vy:0};
  107. _root.replayDataSlots[1][3] = {x:416.95,y:184.95,vx:0,vy:0};
  108. _root.replayDataSlots[1][4] = {x:444.95,y:168.95,vx:0,vy:0};
  109. _root.replayDataSlots[1][5] = {x:475.95,y:169.95,vx:0,vy:0};
  110. _root.replayDataSlots[1][6] = {x:509.95,y:169.95,vx:0,vy:0};
  111. _root.replayDataSlots[1][7] = {x:542.95,y:169.95,vx:0,vy:0};
  112. _root.replayDataSlots[2] = new Array();
  113. _root.replayDataSlots[2][0] = {x:435.53254579983,y:282.529219395612,vx:-10.8018815036205,vy:-3.88055991123523};
  114. _root.replayDataSlots[2][1] = {x:181.309250796516,y:498.750719159373,vx:-2.52374030597811e-18,vy:2.8650554134667e-18};
  115. _root.replayDataSlots[2][2] = {x:444.996423706607,y:332.92118806533,vx:3.70632672696534e-10,vy:6.40451012190524e-10};
  116. _root.replayDataSlots[2][3] = {x:103.959243218691,y:125.979241226676,vx:-0.168341140386019,vy:-0.0825094140402536};
  117. _root.replayDataSlots[2][4] = {x:322.386221548055,y:59.8600270768538,vx:-4.46027017527593e-7,vy:-3.00509085586092e-8};
  118. _root.replayDataSlots[2][5] = {x:287.831056269539,y:304.066637712036,vx:0.0000137588566724853,vy:-0.0000216042838801739};
  119. _root.replayDataSlots[2][6] = {x:389.942879410448,y:325.320767727873,vx:-1.42404514264455e-20,vy:-1.3386968667468e-20};
  120. _root.replayDataSlots[2][7] = {x:477.159829529633,y:364.459565310889,vx:-8.72098344355839e-8,vy:2.76352449074515e-7};
  121. _root.replayDataSlots[3] = new Array();
  122. _root.replayDataSlots[3][0] = {x:233.728252230275,y:305.315505136142,vx:1.03267099835645,vy:5.40254867960916};
  123. _root.replayDataSlots[3][1] = {x:181.309250796516,y:498.750719159373,vx:-3.23044024335169e-37,vy:3.66733070164618e-37};
  124. _root.replayDataSlots[3][2] = {x:440.923819804678,y:343.919409689538,vx:-2.18443160756074e-14,vy:-2.67926083433765e-13};
  125. _root.replayDataSlots[3][3] = {x:101.718939050347,y:124.881196008626,vx:-2.15480171722322e-20,vy:-1.05613771329653e-20};
  126. _root.replayDataSlots[3][4] = {x:322.386215612274,y:59.8600266769327,vx:-5.70923887703587e-26,vy:-3.84657898940948e-27};
  127. _root.replayDataSlots[3][5] = {x:315.436644354803,y:315.445593484631,vx:0.0000445097432973508,vy:-0.0000273611142484804};
  128. _root.replayDataSlots[3][6] = {x:467.611976404249,y:55.1317718260599,vx:-0.0336334980630561,vy:0.0492420233503286};
  129. _root.replayDataSlots[3][7] = {x:477.159828369034,y:364.459568988621,vx:-1.11630407498509e-26,vy:3.53736900236696e-26};
  130. _root.replayDataSlots[4] = new Array();
  131. _root.replayDataSlots[4][0] = {x:416.113101738138,y:308.948209680405,vx:15.0174081993993,vy:-6.83708710913236};
  132. _root.replayDataSlots[4][1] = {x:181.309250796516,y:498.750719159373,vx:-1.51161133026735e-27,vy:1.71604432301587e-27};
  133. _root.replayDataSlots[4][2] = {x:440.925199940032,y:343.936337400106,vx:-0.000102215528517469,vy:-0.00125369941210376};
  134. _root.replayDataSlots[4][3] = {x:101.718939051708,y:124.881196009293,vx:-1.00829064921959e-10,vy:-4.94195717449737e-11};
  135. _root.replayDataSlots[4][4] = {x:322.386215612274,y:59.8600266769327,vx:-2.67150899679735e-16,vy:-1.79991949862751e-17};
  136. _root.replayDataSlots[4][5] = {x:287.83123937406,y:304.066350199625,vx:8.24096028754935e-15,vy:-1.29400319907029e-14};
  137. _root.replayDataSlots[4][6] = {x:318.32650278171,y:349.141322089796,vx:-0.067525605653441,vy:0.0224599098140375};
  138. _root.replayDataSlots[4][7] = {x:477.159828369034,y:364.459568988621,vx:-5.22349203407743e-17,vy:1.65523168995895e-16};
  139.